from typing import List


class Solution05:
    def threeSum(self, nums: List[int]) -> List[List[int]]:
        nums.sort()
        list_value = []
        for first in range(len(nums)):
            if (first > 0 and nums[first] == nums[first - 1]):
                continue
            third = len(nums) - 1
            for second in range(first + 1, len(nums)):
                if (second > first + 1 and nums[second] == nums[second - 1]):
                    continue
                while nums[first] + nums[second] + nums[third] > 0 and third > second:
                    third -= 1

                if (third == second):
                    break

                if nums[first] + nums[second] + nums[third] == 0:
                    new_list = [nums[first], nums[second], nums[third]]
                    list_value.append(new_list)
        return list_value
if __name__ == "__main__":
    seq = {'name': 10, 'age': 10, 'sex': 10}
    value = seq.setdefault('tel', "1245436")
    print(value)
    print(seq)
    # nums = [-1,0,1,2,-1,-4]
    # target = 1
    # solution = Solution05()
    # print(solution.threeSum(nums))
